Home

Operator Usage

Name

||

Description

ket1 || ket2
return |yes> if ket1 or ket2 are |yes>, |no> otherwise
sometimes it is cleaner to use the or() function instead of ||


Examples

|yes> || |yes>
    |yes>

|no> || |yes>
    |yes>

|no> || |no>
    |no>

|yes> || |fish>
    |yes>


See also

and, or, &&

Operator type

infix type 2